cmake_minimum_required(VERSION 3.10.0)
project(chain_menu VERSION 0.1.0 LANGUAGES C CXX)
# 声明一个变量SDL2_DIR为SDL2安装路径
set(SDL2_DIR “${CMAKE_C_COMPILER}”)

# 设置要包含的头文件的路径
include_directories(${SDL2_DIR}/include)
include_directories(chain/core/menu)
include_directories(chain/core/key)

# 设置要关联的库的路径
link_directories(${SDL2_DIR}/bin)


add_executable(chain_menu main.cpp
 chain/core/menu/menu.c)



target_link_libraries(chain_menu
	mingw32
	SDL2main
	SDL2
	SDL2_ttf
)

#################谁愿意写测试谁写去吧!!!#######################

include(CTest)
enable_testing()

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
